home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
qbtools1.arc
/
AECTRLTM.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-01-11
|
512b
|
18 lines
rem $linesize:132
rem $title:'Application Engineer Standard Routines'
rem $subtitle:'Trim both Control & Space characters'
' Include the COMMON values
rem $include:'AESHARED.BAS'
sub ctrl.trim(ctrl.ch$) static
for j%=0% to 31%
temp$=chr$(j%)
b%=instr(ctrl.ch$,temp$)
while b%
mid$(ctrl.ch$,b%,1%)=chr$(32%)
b%=instr(ctrl.ch$,temp$)
wend
next j%
call trim(ctrl.ch$)
end sub